home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / src-glu / gluP.h < prev    next >
C/C++ Source or Header  |  1998-12-15  |  2KB  |  94 lines

  1. /* $Id: gluP.h,v 1.3 1997/08/01 22:25:27 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  2.4
  6.  * Copyright (C) 1995-1997  Brian Paul
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25.  * $Log: gluP.h,v $
  26.  * Revision 1.3  1997/08/01 22:25:27  brianp
  27.  * check for Cygnus Win32 (Stephen Rehel)
  28.  *
  29.  * Revision 1.2  1997/05/27 02:59:46  brianp
  30.  * added defines for APIENTRY and CALLBACK if not compiling on Win32
  31.  *
  32.  * Revision 1.1  1996/09/27 01:19:39  brianp
  33.  * Initial revision
  34.  *
  35.  */
  36.  
  37.  
  38.  
  39. /*
  40.  * This file allows the GLU code to be compiled either with the Mesa
  41.  * headers or with the real OpenGL headers.
  42.  */
  43.  
  44.  
  45. #ifndef GLUP_H
  46. #define GLUP_H
  47.  
  48.  
  49. #include "GL/gl.h"
  50. #include "GL/glu.h"
  51.  
  52.  
  53. /* define APIENTRY */
  54. #ifdef __CYGWIN32__
  55. #include <windows.h>
  56. #endif
  57.  
  58. #ifndef __WIN32__
  59. #ifndef APIENTRY
  60. #define APIENTRY
  61. #endif
  62. #define CALLBACK
  63. #endif
  64.  
  65.  
  66. #ifndef MESA
  67.    /* If we're using the real OpenGL header files... */
  68. #  define GLU_TESS_ERROR9       100159
  69. #endif
  70.  
  71.  
  72. #define GLU_NO_ERROR            GL_NO_ERROR
  73.  
  74.  
  75. /* for Sun: */
  76. #ifdef SUNOS4
  77. #define MEMCPY( DST, SRC, BYTES) \
  78.     memcpy( (char *) (DST), (char *) (SRC), (int) (BYTES) )
  79. #else
  80. #define MEMCPY( DST, SRC, BYTES) \
  81.     memcpy( (void *) (DST), (void *) (SRC), (size_t) (BYTES) )
  82. #endif
  83.  
  84.  
  85. #ifndef NULL
  86. #  define NULL 0
  87. #endif
  88.  
  89. #if defined(AMIGA) && defined(__PPC__)
  90. extern void* currentCallback;
  91. #endif
  92.  
  93. #endif
  94.